<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('添加学生保险管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-insurance-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生姓名：</label>
                <div class="col-sm-8">
                    <input name="insuranceName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">身份证：</label>
                <div class="col-sm-8">
                    <input name="insuranceInentity" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">班级名称：</label>
                <div class="col-sm-8">
                    <input name="insuranceClass" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">保险公司名称：</label>
                <div class="col-sm-8">
                    <input name="insuranceInsurance" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">保险单号：</label>
                <div class="col-sm-8">
                    <input name="insuranceOdd" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否学费包含：</label>
                <div class="col-sm-8">
                    <input name="insuranceSchooling" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">入保时间：</label>
                <div class="col-sm-8">
                    <input name="insuranceProtect" class="form-control" type="datetime-local">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">保险到期时间：</label>
                <div class="col-sm-8">
                    <input name="insuranceExpire" class="form-control" type="datetime-local">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">学生状态：</label>
                <div class="col-sm-8">
                    <select name="insuranceState" class="form-control m-b" th:with="type=${@dict.getType('insurance_state')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">投保状态：</label>
                <div class="col-sm-8">
                    <input name="insuranceStustate" class="form-control" type="text" placeholder="1投保中2已过期3即将过期">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/insurance"
        $("#form-insurance-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-insurance-add').serialize());
            }
        }
    </script>
</body>
</html>